﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace leviathan_mapeditor.newScenario
{
    public partial class newScenario : Form
    {
        MainForm main;

        public newScenario(ref MainForm m)
        {
            InitializeComponent();
            main = m;
        }

        private void newScenario_Load(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if ("" != textBox1.Text)
            {
                main.newScenario(textBox1.Text);
                this.Close();
                return;
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Legalább 1 karakter hosszú név kell!", "Hiba!");
                return;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
